package com.mybaitis_plus.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mybaitis_plus.mapper.UserMapper;
import com.mybaitis_plus.pojo.User;
import com.mybaitis_plus.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TestServiceImpl implements TestService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public IPage<User> listUser() {
        Page<User> page = new Page<>(1,4);
        return userMapper.selectPage(page,null);
    }
}
